package com.xcm.constant;

/**
 * 角色相关常量类
 *
 * @author 林强
 * @date 2018-04-12 11:15
 */
public class SysRoleConstants {
    public static final String SAVE_SUCCESS = "新增角色成功";
    public static final String SAVE_FAIL = "新增角色失败";
    public static final String GET_SUCCESS = "获取角色成功";
    public static final String GET_FAIL = "获取角色失败";
    public static final String SAVE_USER_FOR_ROLE_SUCCESS = "添加用户成功";
    public static final String SAVE_USER_FOR_ROLE_FAIL = "添加用户失败";
    public static final String DELETE_SUCCESS = "删除角色成功";
    public static final String DELETE_FAIL = "删除角色失败";
    public static final String DELETE_FAIL_SUPER_ROLE_CANNOT_DELETE = "不能删除系统角色";
    public static final String UPDATE_SUCCESS = "更新角色成功";
    public static final String UPDATE_FAIL = "更新角色失败";
    public static final String DELETE_FAIL_HAS_RELATION = "删除角色失败，请先清除和用户、权限的关联";
    public static final String ROLE_NOT_EXITS = "角色不存在";

    public static final String VALIDATE_NO_SYS_ROLE = "未填写角色信息";
    public static final String VALIDATE_NO_SYS_ROLE_NAME = "角色名称不能为空";
    public static final String VALIDATE_ROLE_NAME_ERROR = "角色名称过长";
    public static final String VALIDATE_ROLE_DESC_ERROR = "角色描述过长";

    public static final String ENABLE_SUCCESS = "启用成功";
    public static final String ENABLE_FAIL = "启用失败";
    public static final String ENABLE_FAIL_NO_SELECT = "请选择需要启用的角色";

    public static final String DISABLE_SUCCESS = "停用成功";
    public static final String DISABLE_FAIL = "停用失败";
    public static final String DISABLE_FAIL_NO_SELECT = "请选择需要停用的角色";
    public static final String DISABLE_FAIL_HAS_SUPER_ROLE = "不能停用系统角色";

    /**
     * 启用
     */
    public static final String ABLE_ENABLE = "1";
    /**
     * 停用
     */
    public static final String ABLE_DISABLE = "0";
    /**
     * 可用
     */
    public static final String STATUS_USE = "1";
    /**
     * 逻辑删除
     */
    public static final String STATUS_DELETE = "0";

    public static final String ROLE_NOT_ABLE_BIND_USER = "角色已被停用，不能绑定用户";
    public static final String SAVE_USER_ROLE_ERROR_NO_USER_SELECT = "请选择需要绑定的用户";
}